package com.mon4cc.simulation.utils;

/**
 * @author Ping
 * @date 2022/12/19 15:50
 **/
public class IdGenerator {
     long base = 0 ;

    public IdGenerator(long  base) {
        this.base = base;
    }

    public synchronized long nextId() {
        return base++ ;
    }
    public void reset(){
        this.base = 0 ;
    }


}
